﻿using AutoMapper;
using YunxSoft.Abp.LanguageManagement.Web.Pages.LanguageManagement.Languages;

namespace YunxSoft.Abp.LanguageManagement.Web;

public class LanguageManagementWebAutoMapperProfile : Profile
{
    public LanguageManagementWebAutoMapperProfile()
    {
        /* You can configure your AutoMapper mapping configuration here.
         * Alternatively, you can split your mapping configurations
         * into multiple profile classes for a better organization. */
        CreateMap<CreateModalModel.LanguageModel, CreateLanguageDto>().MapExtraProperties();
        
        CreateMap<LanguageDto, EditModalModel.LanguageModel>().MapExtraProperties();
        CreateMap<EditModalModel.LanguageModel, UpdateLanguageDto>().MapExtraProperties();
    }
}
